#include <iostream>
#include <cstdio>
using namespace std;
const int MAXN=1e9+7;
int main() {
	for (int i=1; i<=MAXN; ++i) {
		if (MAXN%i==0) cout<<i<<endl;
	}
	return 0;
} 
